package com.standardoperationapp.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.Toast;

import com.standardoperationapp.R;

public class DoorWarnActivity extends AppCompatActivity {

    private TextView warnTv,batteryTv;
    private Button closeBtn;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_door_warn);
        warnTv=(TextView) findViewById(R.id.warn_closewarn_tx);
        batteryTv=(TextView) findViewById(R.id.warn_battery_tx);
        closeBtn=(Button) findViewById(R.id.warn_close_Btn);
        closeBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(DoorWarnActivity.this,"关锁",Toast.LENGTH_LONG).show();
            }
        });
    }
}